const popupPosition = window.cquery.Popup.create({
	element: '#popup-2',
	onClose: function () {
		console.log('关闭弹窗');
	},
});
window.cquery.Button.create({
	element: '#popup-btn-top',
	onClick: function () {
		popupPosition.el.className = 'cq-popup cq-popup--top';
		popupPosition.show();
	},
});
window.cquery.Button.create({
	element: '#popup-btn-bottom',
	onClick: function () {
		popupPosition.el.className = 'cq-popup cq-popup--bottom';
		popupPosition.show();
	},
});
window.cquery.Button.create({
	element: '#popup-btn-left',
	onClick: function () {
		popupPosition.el.className = 'cq-popup cq-popup--left';
		popupPosition.show();
	},
});
window.cquery.Button.create({
	element: '#popup-btn-right',
	onClick: function () {
		popupPosition.el.className = 'cq-popup cq-popup--right';
		popupPosition.show();
	},
});
